import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about', 
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/showks',     //科室显示
      name: 'showks', 
      component: () => import('../views/HouseKS/ShowKSView.vue'),
    },
     {
      path: '/addks',     //科室添加
      name: 'addks', 
      component: () => import('../views/HouseKS/AddKSView.vue'),
    },
    {
      path: '/upks',     //科室修改
      name: 'upks', 
      component: () => import('../views/HouseKS/UpdateKSView.vue'),
    },
    {
      path: '/login',     //管理员登录
      name: 'login', 
      component: () => import('../views/HouseBF/LoginView.vue'),
    },
     {
      path: '/',     //病房信息显示
      name: 'showbf', 
      component: () => import('../views/HouseBF/ShowBFView.vue'),
    },
    {
      path: '/addbf',     //病房信息添加
      name: 'addbf', 
      component: () => import('../views/HouseBF/AddBFView.vue'),
    },
    {
      path: '/showys',     ///医生信息显示
      name: 'showys', 
      component: () => import('../views/HouseYS/ShowYSView.vue'),
    },
    {
      path: '/addys',     //医生信息添加
      name: 'addys', 
      component: () => import('../views/HouseYS/AddYSView.vue'),
    },
  ],
})

export default router
